#define _CRT_SECURE_NO_WARNINGS 1

#include "SeqList.h"

void TestSeqList1()
{
	SL s1;
	SeqListInit(&s1);
	SeqListPushBack(&s1, 1);
	SeqListPushBack(&s1, 2);
	SeqListPushBack(&s1, 3);
	SeqListPushBack(&s1, 4);
	SeqListPushBack(&s1, 5);
	SeqListPushFront(&s1, 0);
	SeqListPushFront(&s1, -1);
	SeqListPopFront(&s1);
	SeqListPopFront(&s1);
	SeqListPush(&s1, 0, 0);
	SeqListPush(&s1, 6, 6);
	SeqListPop(&s1, 0);
	int pos = SeqListFind(&s1, 5);
	{
		if (pos != -1)
		{
			SeqListPop(&s1, pos);
		}
	}
	SeqListPrint(&s1);
	SeqListDestory(&s1);
}

int main()
{
	TestSeqList1();
	return 0;
}